﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Store.WP7.Data
{
    public static class OrderStateHelper
    {
        public static string GetOrderStateLabel(int state)
        {
            if (state == 1)
                return "En cours de validation";

            if (state == 2)
                return "En cours de préparation";

            if (state == 3)
                return "Expédiée";

            if (state == 4)
                return "Annulée";

            return string.Empty;
        }

        public static Uri GetOrderStatePictureUri(int state)
        {
            if (state == 1)
                return new Uri("/icons/orderstates/pending.png", UriKind.Relative);

            if (state == 2)
                return new Uri("/icons/orderstates/inprogress.png", UriKind.Relative);

            if (state == 3)
                return new Uri("/icons/orderstates/sent.png", UriKind.Relative);

            if (state == 4)
                return new Uri("/icons/orderstates/cancelled.png", UriKind.Relative);

            return null;
        }
    }
}
